package cn.walls1717.ggkt.user.controller;


import cn.walls1717.ggkt.model.user.UserInfo;
import cn.walls1717.ggkt.user.service.UserInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * 用户相关接口
 *
 * @author walls1717
 * @since 2022/07/18
 */
@Api(tags = "用户相关接口")
@RestController
@RequestMapping("/admin/user/userInfo")
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;

    @ApiOperation("根据id获取用户")
    @GetMapping("inner/getById/{id}")
    public UserInfo innerGetUserById(@PathVariable Long id) {
        return userInfoService.getById(id);
    }
}

